package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.MemberCardLevelEntity;
import com.dragon.modules.yuegou.enums.member.MemberCardLevelGradeRule;
import com.dragon.modules.yuegou.enums.member.MemberCardLevelLevelSorce;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员卡等级表模型类
 * 
 * @author pbuilder generated
 * @date 2021-12-17 16:51:24
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberCardLevel extends MemberCardLevelEntity {

	/**
	 * 构造一个空会员卡等级表模型对象
	 */
	public MemberCardLevel(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员卡等级表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberCardLevel(MemberCardLevelEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员卡等级表模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberCardLevel(MemberCardLevel other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置主键
	 * 
	 * @param id 主键
	 * @return 当前对象
	 */
    public MemberCardLevel id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public MemberCardLevel busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public MemberCardLevel memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getCardNo() {
    	return cardNo;
    }

    /**
	 * 设置会员卡编号
	 * 
	 * @param cardNo 会员卡编号
	 * @return 当前对象
	 */
    public MemberCardLevel cardNo(String cardNo) {
    	this.cardNo = cardNo;
    	return this;
    }

	@Override
	public MemberCardLevelGradeRule getGradeRule() {
    	return gradeRule;
    }

    /**
	 * 设置[枚举]等级规则：0-成长值-GROWTH、1-指定条件-SPECIFIED
	 * 
	 * @param gradeRule [枚举]等级规则：0-成长值-GROWTH、1-指定条件-SPECIFIED
	 * @return 当前对象
	 */
    public MemberCardLevel gradeRule(MemberCardLevelGradeRule gradeRule) {
    	this.gradeRule = gradeRule;
    	return this;
    }

	@Override
	public String getGradeId() {
    	return gradeId;
    }

    /**
	 * 设置当前会员等级ID
	 * 
	 * @param gradeId 当前会员等级ID
	 * @return 当前对象
	 */
    public MemberCardLevel gradeId(String gradeId) {
    	this.gradeId = gradeId;
    	return this;
    }

	@Override
	public String getGradeName() {
    	return gradeName;
    }

    /**
	 * 设置会员等级名称
	 * 
	 * @param gradeName 会员等级名称
	 * @return 当前对象
	 */
    public MemberCardLevel gradeName(String gradeName) {
    	this.gradeName = gradeName;
    	return this;
    }

	@Override
	public Long getGrowCount() {
    	return growCount;
    }

    /**
	 * 设置当前会员成长值
	 * 
	 * @param growCount 当前会员成长值
	 * @return 当前对象
	 */
    public MemberCardLevel growCount(Long growCount) {
    	this.growCount = growCount;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public MemberCardLevel createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public MemberCardLevel modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public LocalDateTime getBeginTime() {
    	return beginTime;
    }

    /**
	 * 设置等级开始时间
	 * 
	 * @param beginTime 等级开始时间
	 * @return 当前对象
	 */
    public MemberCardLevel beginTime(LocalDateTime beginTime) {
    	this.beginTime = beginTime;
    	return this;
    }

	@Override
	public LocalDateTime getEndTime() {
    	return endTime;
    }

    /**
	 * 设置等级结束时间
	 * 
	 * @param endTime 等级结束时间
	 * @return 当前对象
	 */
    public MemberCardLevel endTime(LocalDateTime endTime) {
    	this.endTime = endTime;
    	return this;
    }

	@Override
	public MemberCardLevelLevelSorce getLevelSorce() {
    	return levelSorce;
    }

    /**
	 * 设置[枚举]等级来源：0-创建会员-VIP_CREATE、1-会员升级-VIP_UPGRADE、2-会员降级-VIP_DEMOTION、3-旧会员变更-OLD_MEMBER
	 * 
	 * @param levelSorce [枚举]等级来源：0-创建会员-VIP_CREATE、1-会员升级-VIP_UPGRADE、2-会员降级-VIP_DEMOTION、3-旧会员变更-OLD_MEMBER
	 * @return 当前对象
	 */
    public MemberCardLevel levelSorce(MemberCardLevelLevelSorce levelSorce) {
    	this.levelSorce = levelSorce;
    	return this;
    }
}
